//整理最后的结果，不必要每次使用都要写一次方法

const getters = {
  // language: state => state.app.language,//
  language: function state(state) {
    return state.app.language
  },
  sidebar: state => state.app.sidebar, //app 模块名
  device: state => state.app.device,
  token: state => state.user.token, //user 模块名
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  /* tags */
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  /* vueBus */
  count: state => state.vueBus.count,
  list: state => state.vueBus.list
}
export default getters
